home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmTest6
- AutoRedraw = -1 'True
- BorderStyle = 0 'None
- ClientHeight = 2736
- ClientLeft = 0
- ClientTop = 0
- ClientWidth = 3504
- ControlBox = 0 'False
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2736
- ScaleWidth = 3504
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton cmdSet
- Caption = "Set Position"
- Height = 372
- Left = 2160
- TabIndex = 8
- Top = 1620
- Width = 1212
- End
- Begin VB.TextBox txtHeight
- Height = 288
- Left = 660
- TabIndex = 7
- Top = 1200
- Width = 2712
- End
- Begin VB.TextBox txtWidth
- Height = 288
- Left = 660
- TabIndex = 5
- Top = 840
- Width = 2712
- End
- Begin VB.TextBox txtTop
- Height = 288
- Left = 660
- TabIndex = 3
- Top = 480
- Width = 2712
- End
- Begin VB.TextBox txtLeft
- Height = 288
- Left = 660
- TabIndex = 1
- Top = 120
- Width = 2712
- End
- Begin VB.Label Label4
- Caption = "Height:"
- Height = 252
- Left = 120
- TabIndex = 6
- Top = 1260
- Width = 492
- End
- Begin VB.Label Label3
- Caption = "Width:"
- Height = 252
- Left = 120
- TabIndex = 4
- Top = 900
- Width = 432
- End
- Begin VB.Label Label2
- Caption = "Top:"
- Height = 252
- Left = 120
- TabIndex = 2
- Top = 540
- Width = 432
- End
- Begin VB.Label Label1
- Caption = "Left:"
- Height = 252
- Left = 120
- TabIndex = 0
- Top = 180
- Width = 432
- End
- Attribute VB_Name = "frmTest6"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public Sub RefreshPosition()
- Dim w As sgWindow.Window
- Set w = frmMain.g_wndTest
- txtLeft.Text = w.Left
- txtTop.Text = w.Top
- txtWidth.Text = w.Width
- txtHeight.Text = w.Height
- End Sub
- Private Sub cmdSet_Click()
- Dim w As sgWindow.Window
- Set w = frmMain.g_wndTest
- w.Left = txtLeft.Text
- w.Top = txtTop.Text
- w.Width = txtWidth.Text
- w.Height = txtHeight.Text
- End Sub
-